//
//  CalculatorATableViewCell.h
//  Waiguofang
//
//  Created by waiguofang on 15/4/28.
//
//

#import <UIKit/UIKit.h>

@protocol CalculatorDelegate <NSObject>

- (void)calculatorResultWithTotalLoanPrice:(NSString *)loanPrice monthlyPayment:(NSString *)mothlyPayment andTotalInterest:(NSString *)totalInterest;

@end

@interface CalculatorATableViewCell : UITableViewCell<UITextFieldDelegate>

@property (assign, nonatomic)id<CalculatorDelegate> delegate;
@property (weak, nonatomic) IBOutlet UITextField *housePrice;
@property (weak, nonatomic) IBOutlet UITextField *firstPrice;
@property (weak, nonatomic) IBOutlet UITextField *loanYears;
@property (weak, nonatomic) IBOutlet UILabel *firstPriceLabel;
@property (weak, nonatomic) IBOutlet UIButton *calculatorButton;

@property (weak, nonatomic) IBOutlet UITextField *lendRate;

- (IBAction)calcukatorButton:(UIButton *)sender;

- (void)calculatorAction;
@end
